package com.wandian.texas.dao;

import com.wandian.texas.entity.ChatrecordEntity;

/**
 * @author long
 * @Create 2012-10-8 上午9:32:03
 * @QQ 108232706
 * @version 1.0
 * @description ChatrecordDao
 */
public interface ChatrecordDao {
	/**
	 * 根据主键查询用户
	 * 
	 * @param id
	 * @return
	 */
	public ChatrecordEntity getChatrecord(int Id);

	public boolean addChatrecord(ChatrecordEntity info);

	public boolean addChatrecord2(ChatrecordEntity info);

	public boolean updateChatrecord(ChatrecordEntity info);

	public boolean delChatrecord(int Id);

	/**
	 * 插入并将增长的id返回
	 * 
	 * @param info
	 * @return
	 */
	public ChatrecordEntity add(ChatrecordEntity info);

	public ChatrecordEntity add2(ChatrecordEntity info);

	public ChatrecordEntity batchAdd(ChatrecordEntity info, int count);

	public ChatrecordEntity batchAdd2(ChatrecordEntity info, int count);
}
